home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / answers / comp / open-look / 03-xview < prev    next >
Text File  |  1994-03-24  |  6KB  |  146 lines

  1. Newsgroups: comp.windows.open-look,alt.toolkits.xview,comp.windows.news,alt.sys.sun,alt.toolkits.intrinsics,comp.answers,alt.answers,news.answers
  2. Path: bloom-beacon.mit.edu!hookup!news.moneng.mei.com!howland.reston.ans.net!cs.utexas.edu!utnut!utzoo!sq!lee
  3. From: lee@sq.sq.com (Liam Quin)
  4. Subject: OPEN LOOK GUI FAQ 03/04: the XView Toolkit
  5. Message-ID: <liamfaq-ol3-23@sq.com>
  6. Followup-To: poster
  7. Summary: FAQ for the freely available XView X Windows toolkit
  8. Supersedes: <liamfaq-ol1-23@sq.com>
  9. Reply-To: lee@sq.com (Liam R. E. Quin)
  10. Organization: SoftQuad Inc., Toronto, Canada
  11. References: <liamfaq-ol1-24@sq.com> <liamfaq-ol2-23@sq.com>
  12. Date: Thu, 24 Mar 94 23:06:15 GMT
  13. Approved: news-answers-request@MIT.EDU
  14. Expires: 24 Apr 1994 02:49:16 GMT
  15. Lines: 128
  16. Xref: bloom-beacon.mit.edu comp.windows.open-look:4195 alt.toolkits.xview:1500 comp.windows.news:663 alt.sys.sun:1731 comp.answers:4322 alt.answers:2210 news.answers:16815
  17.  
  18. Archive-name: open-look/03-xview
  19.  
  20.  
  21. This is a new FAQ.
  22.  
  23. Contributions will be welcomed; mail them to lee@sq.com (Liam Quin),
  24. preferably including "XView FAQ" in the Subject line.
  25.  
  26. [1] Sources Of Information
  27. [2] how do I set the font of individual Scrolling List items?
  28. [3] how do I keep an XView pop-up window displayed after a button is pressed?
  29. [4] how do I make an XView button look pressed?
  30. [5] OpenWindows 3 imake doesn't work properly
  31. [6] The pop-up menu in my canvas has funny colours
  32. [7] The second ttysw in my program doesn't work
  33. [8] How do arrange to have a (Cancel) button to stop a calacuation?
  34. [9] How do I put panel items on a canvas?
  35.  
  36.  
  37. [1] Sources Of Information:
  38.     netnews newsgroups:
  39.     alt.toolkits.xview    - best for specific XView questions
  40.     comp.windows.open-look
  41.     comp.windows.x        - highest volume
  42.     Watch for Frequently Asked Questions lists (such as this) in these
  43.     groups.  The article you are reading is part of the alt.toolkits.xview
  44.     and comp.windows.open-look FAQ.
  45.  
  46.     Books:
  47.     See the comp.windows.open-look FAQ, which lists several books on X
  48.     and XView.  The O'Reiily books in particular are recommended.
  49.     
  50.     Source: code:
  51.     the FTP site export.lcs.mit.edu, in directory /contrib, has the
  52.     full XView source (the latest release is 3.2), together with lots
  53.     of X programs.  Programs whose name ends in "tool" or starts with
  54.     "xv" are often based on XView.
  55.  
  56. [2] how do I set the font of individual Scrolling List items?
  57.     PANEL_LIST_FONT takes an int row_number and an Xv_opaque font_handle.
  58.     PANEL_LIST_FONTS take a NULL terminated list of Xv_opaque font_handles.
  59.     There is no easy way to make an entire list fixed width font.
  60.     You have to make sure that you always specify PANEL_LIST_FONT when you
  61.     insert a new row into that list, or write a convenience function
  62.     insert_row(list, row, string) that hides the nasty bits.
  63.     The most efficient way to do this involves creating an Xv_attr array
  64.     to do lots of insertions at once, complete with PANEL_LIST_FONTs.
  65.  
  66. [3] how do I keep an XView pop-up window displayed after a button is pressed?
  67.     In the button callback, do
  68.         xv_set(button, PANEL_NOTIFY_STATUS, XV_ERROR, NULL);
  69.     This will keep the window visible.
  70.     You might also need to investigate the MENU_NOTIFY_STATUS attribute.
  71.  
  72. [4] how do I make an XView button look pressed?
  73.     call panel_begin_preview() and panel_cancel_preview(); these are
  74.     documented in -- er -- the XView 3 source...
  75.  
  76. [5] OpenWindows 3 imake doesn't work properly
  77.     Here is Greg Earle's patch, to be applied in $OPENWINHOME; note that you
  78.     should edit lib/config/sun.cf afterwards to get OSName and
  79.     OSMinorVersion right (MinorVersion is 1 in SunOS 4.1.2, for example).
  80.     I have edited the patch a little, so any bugs are mine [lee@sq.com] :-)
  81.  
  82. *** bin/xmkmf.orig    Wed Sep 18 07:02:02 1991
  83. --- bin/xmkmf    Tue Aug  6 00:39:20 1991
  84. ***************
  85. *** 30,34 ****
  86.   
  87.   elif [ -n "$OPENWINHOME" ]; then
  88. !     args="-DUseInstalled $OPENWINHOME/lib/config"
  89.   
  90.   else
  91. --- 30,34 ----
  92.   
  93.   elif [ -n "$OPENWINHOME" ]; then
  94. !     args="-I$OPENWINHOME/lib/config -DUseInstalled -DXCOMM='/**/#'"
  95.   
  96.   else
  97. *** lib/config/site.def.orig    Wed Sep 18 01:26:19 1991
  98. --- lib/config/site.def    Tue Aug  6 00:44:37 1991
  99. ***************
  100. *** 0 ****
  101. --- 1,7 ----
  102. + #define BinDir $(OPENWINHOME)/bin
  103. + #define LibDir $(OPENWINHOME)/lib
  104. + #define IncRoot $(OPENWINHOME)/share/include
  105. + #define InstallNonExecFile(file,dest)                    @@\
  106. + install:: file                                @@\
  107. +     $(INSTALL) -c $(INSTDATFLAGS) file dest
  108. + #define NullParameter
  109.  
  110.  
  111. [6] The pop-up menu in my canvas has funny colours
  112.     You need to use CMS_CONTROL_CMS when you create the CMS for your canvas.
  113.     This allocates the OPEN LOOK UI 3D colors at the start of the colormap.
  114.     The foreground color lives right at the end.
  115.  
  116. [7] The second ttysw in my program doesn't work
  117.     XView only supports one ttysw per program!
  118.  
  119. [8] How do arrange to have a (Cancel) button to stop a calacuation?
  120.     When you are doing cpu-intensive calculations, your program probably
  121.     isn't calling the XView notifier, so that button presses aren't noticed
  122.     until the computation is over.
  123.     There are several possible solutions:
  124.     * use the implicit or explicit notify displatch mechanism, described
  125.       in the Notifier chapter of the XView Programming Manual (O'Reilly);
  126.     * use multiple processes, and send signals;
  127.     * split up the work into small chunks and use notify_stop to return to
  128.       the main loop for each chunk.
  129.  
  130. [9] How do I put panel items on a canvas?
  131.     You don't.
  132.     You can, however, draw on a panel, as if it was a canvas.
  133.     Another alternative is to use olgx to render the controls, but this is
  134.     a little tricky.
  135.  
  136.  
  137. END of XView FAQ
  138.  
  139. # $Id$
  140.  
  141. -- 
  142. Liam Quin, Manager of Contracting, SoftQuad Inc +1 416 239 4801 lee@sq.com
  143. HexSweeper NeWS game;OPEN LOOK/XView/mf-fonts FAQs;lq-text unix text retrieval
  144.  
  145. who is my neighbour?
  146.